<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html:html>
<head>
    <title><bean:message key="logon.title"/></title>
    <link rel="stylesheet" href="<%=request.getContextPath() %>/default.css" type="text/css">
</head>

<body>
<html:errors/>

<div id="header">
	<div id="logo">
		<h1>
			<html:img width="40" src="../images/EMPTY.GIF"/>
			<html:link page="/pages/home.jsp">Textbook Crossroads</html:link>
		</h1>
		<h2>Team 14 - LoneTree</h2>
	</div>
	<div id="menu">
		<ul>
			<li><html:link page="/pages/home.jsp">Home</html:link></li>
			<li><html:link page="/pages/books.jsp">Books</html:link></li>
			<li><html:link page="/pages/courses.jsp">Courses</html:link></li>
			<li><html:link page="/pages/about.jsp">About</html:link></li>
			<li class="logon"><html:link page="/pages/logon.jsp">LogIn</html:link></li>
		</ul>
	</div>
</div>

<div id="content">
	<div id="sidebar">
		<div id="categories">
			<div id="archives" class="boxed">
				<h2>Contributors</h2>
				<div class="content">
					<ul>
						<li>Andrew Lee</li>
						<li>Bojan Martin</li>
						<li>Dimeji Omikunle</li>
						<li>Minghui Yu</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	
	<div id="posts">
		<div class="post">
			<h2 class="title"><bean:message key="logon.heading"/></h2>
			<div class="meta">
				<p class="date">General Info:</p>
			</div>
			<div class="story">			
				<html:form action="/logon" focus="username"
				           onsubmit="return validateLogonForm(this);">
				    <table border="0" width="100%">
				        <tr>
				            <th align="right">
				                <bean:message key="prompt.username"/>:
				            </th>
				            <td align="left">
				                <html:text property="username" size="16" maxlength="18"/>
				            </td>
				        </tr>
				
				        <tr>
				            <th align="right">
				                <bean:message key="prompt.password" />:
				            </th>
				            <td align="left">
				                <html:password property="password" size="16" maxlength="18"
				                               redisplay="false"/>
				            </td>
				        </tr>
				
				        <tr>
				            <td align="right">
				                <html:submit property="Submit" value="Submit"/>
				            </td>
				            <td align="left">
				                <html:reset/>
				            </td>
				        </tr>
				    </table>
				</html:form>
			</div>
		</div>
	</div>
</div>

<div id="footer">
	<p id="copy">&copy;2007 LoneTree.</p>
	<p> (Andrew Lee | Bojan Martin | Dimeji Omikunle | Minghui Yu)</p>
</div>
</body>
</html:html>
